package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.CommentQuery;
import cn.wolfcode.trip.base.query.StrategyCommentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommentService {

    /**
     * 查询所有攻略点评
     * @param qo
     * @return
     */
    PageInfo<StrategyComment> query(StrategyCommentQuery qo);

    /**
     * 保存点评
     * @param comment 点评内容
     * @param tags 标签
     */
    void save(StrategyComment comment, String[] tags);

    /**lituan
     * 查出所有状态为热门的点评
     * @param state
     * @return
     */
    List<StrategyComment> selectHotComment(Long state);

    /**lituan
     * 根据点评id查出该点评
     * @param id
     * @return
     */
    StrategyComment getCommentById(Long id);

    void update(StrategyComment strategyComment);

    List<StrategyComment> queryComment(CommentQuery qo);
}
